<?php

/*
 * This file is part of the phpems/phpems.
 *
 * (c) oiuv <i@oiuv.cn>
 *
 * 项目维护：oiuv(QQ:7300637) | 定制服务：火眼(QQ:278768688)
 *
 * This source file is subject to the MIT license that is bundled.
 */

class action extends app
{
    public function display()
    {
        $action = $this->ev->url(3);
        if (!method_exists($this, $action)) {
            $action = 'index';
        }
        $this->$action();
        exit;
    }

    private function index()
    {
        $this->session->clearSessionUser();
        $message = [
            'statusCode'   => 201,
            'message'      => '操作成功',
            'callbackType' => 'forward',
            'forwardUrl'   => 'index.php?'.$this->G->defaultApp,
        ];
        $this->G->R($message);
        exit;
    }
}
